package com.kancy.vip.pattern.adapter.v2.adapters;

import com.kancy.vip.pattern.adapter.v2.LoginAdapter;
import com.kancy.vip.pattern.adapter.v2.Result;
import com.kancy.vip.pattern.adapter.v2.User;

/**
 * @author kancy
 * @date 2019/3/17 16:58
 */
public class SinaLoginAdapter implements LoginAdapter {
	@Override
	public boolean support(Object object) {
		return object instanceof SinaLoginAdapter;
	}

	@Override
	public Result login(User user, Object object) {
		System.out.println("使用Sina登录...");
		return new Result();
	}
}
